package com.ss.SmartStock.service.impl;

import com.ss.SmartStock.mapper.ProductMapper;
import com.ss.SmartStock.pojo.entity.Product;
import com.ss.SmartStock.pojo.entity.ProductDetails;
import com.ss.SmartStock.mapper.ProductDetailsMapper;
import com.ss.SmartStock.service.ProductDetailsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-06-17
 */
@Service
public class ProductDetailsServiceImpl extends ServiceImpl<ProductDetailsMapper, ProductDetails> implements ProductDetailsService {

    @Resource
    private ProductDetailsMapper productDetailsMapper;
    @Override
    public List<ProductDetails> selectAllProductDetails() {
        return productDetailsMapper.selectAllProductDetails();
    }

    @Override
    public List<ProductDetails> selectAllpdByUid(Long id) {
        return productDetailsMapper.selectAllpdByUid(id);
    }

    @Override
    public int insertProductDetails(ProductDetails productDetails) {
        return productDetailsMapper.insertProductDetails(productDetails);
    }


}
